package edu.whu.assignment8.dataobject;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

@Data
@TableName(value = "supplier")
public class Supplier {
    @TableId(type = IdType.ASSIGN_ID)
    private Integer sid;

    private String sname;
    private Integer pid;

    @Override
    public String toString() {
        return "Supplier{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                '}';
    }
}
